package com.syl.qianyin.spider.beans;

import lombok.*;
import lombok.experimental.Accessors;
import us.codecraft.webmagic.proxy.Proxy;

import java.io.Serializable;
import java.util.Date;

/**
 * ip代理池bean
 *
 * @author syl
 * @create 2019-05-12 9:41
 **/
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
public class IpProxyBean implements Serializable {
    private String host;
    private int port;
    private String username;
    private String password;
    private String type;
    private String url;
    private boolean verify;
    private Date verifyTime;

    public IpProxyBean(String host, int port) {
        this.host = host;
        this.port = port;
    }

    public IpProxyBean(String host, int port, String type, String url) {
        this.host = host;
        this.port = port;
        this.type = type;
        this.url = url;
    }

}
